/**
 * Author:   .
 * Date:    2016/3/4.
 * File：   请求api.
 */
import {post} from './post'
// 获取app版本信息
function getAppVersionInfo() {
  return post('/index.php?act=login&op=getAppVersionInfo', {})
}
function uploadImg(base64Data) {
  if (!(base64Data instanceof Array)) {
    base64Data = [base64Data]
  }
  return post('/index.php?act=member&op=upLoadFile', {base64_img: base64Data})
}
// 验证身份证是否已用
function checkIDCard(cardno) {
  return post('/index.php?act=member&op=verifyIdCardOne', {cardno: cardno})
}
// 获取key（公众号微信授权后可获取到）
function getKey() {
  return post('/index.php?act=login&op=getMemberKey', {})
}
// 根据key获取用户信息(post默认都带key参数，所以不用另外传参数key)
function getMemberInfoByKey() {
  return post('/index.php?act=login&op=getKeygetMember')
}
// 根据memberId 获取用户信息
function getMemberInfoById(member_id) {
  return post('/index.php?act=login&op=getMemberInfo', {member_id: member_id})
}
// 获取微信jssdk相关参数, url为当前页面地址
function getWxConfig(url) {
  return post('/index.php?act=share&op=share_friends', {url: url})
}
// 根据unionId获取key等信息（app微信登录）
function getKeyByUnionId(unionId) {
  return post('/index.php?act=login&op=getInfoByUnionid', {unionid: unionId})
}
// 验证码登录 checkMobile: {mobile: '', code: '', addtime: ''}
function loginByMessage(mobile, secode, name, fkmid, password) {
  return post('/index.php?act=login&op=updateMember', {mobile: mobile, secode: secode, member_name: name, fkmid: fkmid, password: password})
}
// 密码登录
function loginByPwd(mobile, pwd) {
  return post('/index.php?act=login&op=loginByPassword', {mobile: mobile, password: pwd})
}
// 微信登录
function loginByWeixin(mobile, secode, wxInfo, checkMobile) {
  return post('/index.php?act=login&op=updateMember', {mobile: mobile, secode: secode, checkMobile: checkMobile, wxinfo: wxInfo})
}
// 根据paySn, 获取app的微信支付需要的订单对象
function getWxPayOrder(paySn) {
  return post('/index.php?act=member_payment&op=pay', {pay_sn: paySn, payment_code: 'wxpay'})
}
// 完善资料
function auth({address, area_id, city_id, mobile, name, prov_id, secode, check_mobile, password}) {
  return post('/index.php?act=login&op=apply', {address, area_id, city_id, mobile, name, prov_id, secode, check_mobile, password})
}
// 获取是否完善过资料
function getAuth() {
  return post('/index.php?act=login&op=getMemberAllDone', {})
}
// 获取短信验证码
function getMessageCode(mobile, captcha, sign) {
  return post('/index.php?act=login&op=sendCheckCode', {mobile: mobile, captcha: captcha, nchash: '48ae8d0d', sign: sign})
}
// app获取短信验证码
function getMessageCode2(mobile, captcha, sign) {
  return post('/index.php?act=login&op=sendCheckCode1', {mobile: mobile, captcha: captcha, nchash: '48ae8d0d', sign: sign})
}
// 支付测试接口
function payTest() {
  return post('/index.php?act=member_payment&op=pay_tmp_test')
}
// 获取广告轮播图列表
function getAdvList() {
  // return post('/index.php?act=index&op=getAdv', {})
  return post('/index.php?act=index&op=getBannerList', {})
}
// 获取商品分类列表
function getGoodsClassList() {
  return post('/index.php?act=index&op=goods_class', {})
}
// 获取公告列表
function getNoticeList() {
  return post('/index.php?act=index&op=get_notice_list', {})
}
// 获取公告详情
function getNoticeDetail(id) {
  return post('/index.php?act=index&op=notice_detail', {notice_id: id})
}
// 获取用户消息列表
function getMemberNoticeList(page, pageSize) {
  return post('/index.php?act=member_distribution&op=sysMsgList', {page: page, pageSize: pageSize})
}
// 获取用户消息详情
function getMemberNoticeDetail(id) {
  return post('/index.php?act=member_distribution&op=sysMsgDetail', {msg_id: id})
}
// 获取抢购列表
function getPanicBuyingList(page, pageSize) {
  // return post('/index.php?act=index&op=groupbuy_list', {page: page, pageSize: pageSize})
  return post('/index.php?act=index&op=getGroupBuyInfo', {page: page, pageSize: pageSize})
}
// 获取抢购活动的商品列表
function getPanicBuyingGoodsList(id) {
  return post('/index.php?act=index&op=getGroupbuyDetail', {groupbuy_id: id})
}
// 获取阳台种子列表
function getBalconyList(page, pageSize) {
  return post('/index.php?act=index&op=balconySeed', {page: page, pageSize: pageSize})
}
// 获取新品推荐列表
function getNewGoodsList() {
  // return post('/index.php?act=index&op=new_goods', {})
  return post('/index.php?act=index&op=getNewSeed', {})
}
// 获取热销商品列表
function getHotGoodsList(page, pageSize) {
  // return post('/index.php?act=index&op=hot_goods', {page: page, pageSize: pageSize})
  return post('/index.php?act=index&op=getHotSeed', {page: page, pageSize: pageSize})
}
// 按照分类获取商品列表
function getGoodsByClassify(id, page, pageSize, gc_id) {
  let param = {page: page, pageSize: pageSize}
  if (id !== '') { // 全部类别时，请求不需要id
    param.cid = id
  }
  if (gc_id != '') { // 关键字搜索
    param.gc_id = gc_id
  }
  return post('/index.php?act=goods&op=goods_list', param)
}
// 获取商品详细
function getGoodsCommonInfo(id) {
  return post('/index.php?act=goods&op=get_goods_info', {goods_commonid: id})
}
// 获取商品评价列表
function getGoodsCommentList(id, page, pageSize) {
  return post('/index.php?act=goods&op=getCommentInfoMore', {goods_commonid: id, page: page, pageSize: pageSize})
}
// 获取商品规格列表/根据商品规格获取商品库存等信息(有传规格列表时)
function getGoodsAttributeList(id, attrList) {
  let param = {goods_commonid: id}
  if (attrList) {
    param.attr = attrList
  }
  return post('/index.php?act=goods&op=getAttribute', param)
}
// 加入购物车
function addGoodsToCart(goodsId, num) {
  return post('/index.php?act=openshop&op=addCart', {goods_id: goodsId, num: num})
}
// 修改购物车里的商品数量
function modifyGoodsNumToBuy(id, num) {
  return post('/index.php?act=member_cart&op=cart_edit_quantity', {cart_id: id, quantity: num})
}
// 从购物车移出
function delGoodsFromCart(id) {
  return post('/index.php?act=member_cart&op=cart_del', {cart_id: id})
}
// 获取购物车里的商品列表
function getGoodsListInCart(model_type) {
  return post('/index.php?act=member_cart&op=cart_list', {model_type: model_type})
}
// 删除收货地址
function delAddress(id) {
  return post('/index.php?act=member_address&op=address_del', {address_id: id})
}
// 获取地址详情
function getAddressInfo(id) {
  return post('/index.php?act=member_address&op=address_info', {address_id: id})
}
// 获取收货地址列表
function getAddressList() {
  return post('/index.php?act=member_address&op=address_list2', {})
}
// 新增收货地址
function addAddress({address, area_id, area_info, city_id, mob_phone, prov_id, tel_phone, true_name, is_default}) {
  return post('/index.php?act=member_address&op=address_add', {
    address,
    area_id,
    area_info,
    city_id,
    mob_phone,
    prov_id,
    tel_phone,
    true_name,
    is_default
  })
}
// 更新收货地址
function updateAddress({address_id, address, area_id, area_info, city_id, mob_phone, prov_id, tel_phone, true_name, is_default}) {
  return post('/index.php?act=member_address&op=address_edit', {
    address_id,
    address,
    area_id,
    area_info,
    city_id,
    mob_phone,
    prov_id,
    tel_phone,
    true_name,
    is_default
  })
}
// 设置默认收货地址
function setDefaultAddress(id) {
  return post('/index.php?act=member_address&op=address_change', {addressid: id})
}
// 获取下单信息
function getBuyInfo(idList) {
  return post('/index.php?act=member_buy&op=buy_step1', {cart_id: idList})
}
// 提交订单
function submitOrder({address_id, cart_id, express_id, ifcart, is_balance, is_integral, order_note, pay_name, self, is_needship, use_hm, hm_pay, hg_pay, hq_pay, hf_pay, order_type}) {
  return post('/index.php?act=member_buy&op=buy_step2', {
    address_id,
    cart_id,
    express_id,
    ifcart,
    is_balance,
    is_integral,
    order_note,
    pay_name,
    self,
    is_needship,
    use_hm,
    hm_pay,
    hg_pay,
    hq_pay,
    hf_pay,
    order_type
  })
}
// 获取订单列表
function getOrderList(type, page, pageSize) {
  return post('/index.php?act=member_order&op=order_list', {type: type, page: page, pageSize: pageSize})
}
// 获取订单信息
function getOrderInfo(id, userLv) {
  return post('/index.php?act=openshop&op=orderdetail', {order_id: id, type: userLv})
}
// 取消订单
function cancleOrder(id) {
  return post('/index.php?act=member_order&op=updateOverTimeOrder', {order_id: id})
}
// 获取积分列表
function getIntegralList(page, pageSize) {
  return post('/index.php?act=openshop&op=integral_detail', {page: page, pageSize: pageSize})
}
// 获取余额列表
function getBalanceList(page, pageSize) {
  return post('/index.php?act=openshop&op=balance_detail', {page: page, pageSize: pageSize})
}
// 获取省市区
function getArea(type) {
  return post('/index.php?act=member_address&op=returnAreaInfo', {type: type})
}
// 批量添加评论
function addCommentList(commentList, orderId) {
  return post('/index.php?act=openshop&op=evaluate', {goods: commentList, order_id: orderId})
}
// 获取视频列表
function getVideo(page, pageSize) {
  return post('/index.php?act=index&op=videoList', {page: page, pageSize: pageSize})
}
// 获取视频列表
function getVideoDetail(vid) {
  return post('/index.php?act=index&op=getVideoDetail', {id: vid})
}
// 获取首页视频
function homeVideo() {
  return post('/index.php?act=index&op=homePageVideo')
}
// 获取个人信息（需注册后才可取得）
function getMemberInfo() {
  return post('/index.php?act=member&op=getMemberInfo')
}
// 获取个人名字(无需注册)
function getMemberName() {
  return post('/index.php?act=login&op=indexMemberInfo')
}
// 获取消息列表
function getMessageList() {
  return post('')
}
// 获取退款列表
function getRefundMoneyList(page, pageSize) {
  return post('/index.php?act=member_order&op=getRefundInfo1', {page, pageSize})
}
// 退款详情
function getRefundMoneyInfo(id) {
  return post('/index.php?act=member_order&op=getRefundDetail', {refund_id: id})
}
// 获取换货列表
function getRefundGoodsList(page, pageSize) {
  return post('/index.php?act=member_order&op=getRefundInfo2', {page, pageSize})
}
// 获取订单的换货列表
function getRefundGoodsListByOrder(id) {
  return post('/index.php?act=member_order&op=getRefundInfo2', {order_id: id})
}
// 发起退款/换货
function addRefund({goods_num, buyer_message, goods_id, order_id, reason_info, refund_type}) {
  let param = {buyer_message, goods_id, order_id, reason_info, refund_type}
  if (goods_num) { // 换货需要数量
    param.goods_num = goods_num
  }
  return post('/index.php?act=refund&op=addrefund', param)
}
// 换货详情
function getRefundInfo(id) {
  // return post('/index.php?act=member_order&op=getRefundDetail', {refund_id: id})
  return post('/index.php?act=refund&op=showinfo', {refund_id: id})
}
// 退款/换货理由列表 type 0退款 1换货
function getRefundReasonList(type) {
  return post('/index.php?act=refund&op=getRefundReason', {reason_type: type})
}
// 获取物流公司列表
function getExpressList() {
  return post('/index.php?act=refund&op=express')
}
// 添加换货物流信息
function addRefundExpress({refund_id, express_id, express_code}) {
  return post('/index.php?act=refund&op=ship', {refund_id, express_id, express_code})
}
// 获取换货物流信息
function getRefundExpress(id) {
  // return post('/index.php?act=refund&op=showinfo', {refund_id: id})
  return post('/index.php?act=member&op=returnExpressDetail', {return_id: id})
}
// 确认收货
function confirmReceived(id) {
  return post('/index.php?act=openshop&op=confirmOrder', {order_id: id})
}
// 获取订单配送物流信息
function getOrderExpress(id) {
  return post('/index.php?act=member&op=expressDetail', {order_id: id})
}
// 获取文章列表
function getNewsList(page, pageSize) {
  return post('/index.php?act=article&op=admin_article_list', {page: page, pageSize: pageSize})
}
// 获取文章详细
function getNewsDetail(id) {
  return post('/index.php?act=article&op=admin_article_detail', {article_id: id})
}
// 获取收藏列表
function getCollectList(page, pageSize) {
  return post('/index.php?act=member&op=getFavsList', {page: page, pageSize: pageSize})
}
// 添加收藏
function addCollect(id) {
  return post('/index.php?act=member&op=addFavorites', {goods_commonid: id})
}
// 删除收藏
function delCollect(id) {
  return post('/index.php?act=member&op=delFavorites', {goods_commonid: id})
}

// 获取erp里的商品库存信息
function getErpStorage(sku) {
  return post('/index.php?act=goods&op=getErpGoodsStorage', {sku: sku})
}
// 修改用户昵称
function editUserName(name) {
  return post('/index.php?act=member&op=editMember', {member_truename: name})
}
// 修改用户真实姓名
function editUserTrueName(name) {
  return post('/index.php?act=member&op=editMember', {member_truename: name})
}
// 获取邀请人信息
function getInviterInfo() {
  return post('/index.php?act=index&op=getInviterInfo', {})
}
// 获取自提地址列表
function getShopAddressList() {
  return post('/index.php?act=member_buy&op=self_deliveryAddress', {})
}
// 待下单
function addAgentOrder(mobile, remark) {
  return post('/index.php?act=member_order&op=placeOrder', {mobile: mobile, remark: remark})
}
// 获取下级成员列表
function getSubMemberList(page, pageSize) {
  return post('index.php/?act=member&op=getagentlist', {page: page, pageSize: pageSize})
}
// 获取下级成员的订单列表
function getSubOrderList(memberid, page, pageSize, type) {
  return post('/index.php/?act=member&op=order_list', {memberid: memberid, page: page, pageSize: pageSize, type: type})
}
// 获取待发货、待收货、已完成等的数量
function getCountList() {
  return post('/index.php/?act=member_order&op=countOrderNum', {})
}

// 添加到货提醒
function addArriveNotice(id, tel) {
  return post('/index.php?act=member&op=new_arrival_notice', {goods_id: id, mobile: tel})
}
// 商品访问+1
function addGoodsView(goodsId) {
  return post('/index.php?act=store&op=ajax_flowstat_record', {store_id: 1, goods_id: goodsId})
}
// 添加/编辑银行卡信息
function editBankcard({account_name, bank_id, member_bank_num, member_mobile, mb_id, is_default}) {
  return post('/index.php?act=member_distribution&op=add_mybanklist', {account_name, bank_id, member_bank_num, member_mobile, mb_id, is_default})
}
// 获取我的银行卡列表
function getBankcardList() {
  return post('/index.php?act=member_distribution&op=get_mybanklist', {})
}
// 获取银行卡详细信息
function getBankcardInfo(mb_id) {
  return post('/index.php?act=member_distribution&op=get_singleBank', {mb_id: mb_id})
}
// 获取银行卡类型类别
function getBankList() {
  return post('/index.php?act=member_distribution&op=get_banklist', {})
}
// 删除银行卡
function delBankcard(mb_id) {
  return post('/index.php?act=member_distribution&op=delmyBank', {mb_id: mb_id})
}
// 设置默认银行卡
function setDefaultBankcard(mb_id) {
  return post('/index.php?act=member_distribution&op=setDefaultBank', {mb_id})
}
// 经验值支付
function payByBalance(pay_sn) {
  return post('/index.php?act=payment&op=balace_pay', {pay_sn: pay_sn})
}
// 积分收入历史记录addTransaction
function getIntegralHistory({type, s_time, e_time, page, pageSize, keyword, style}) {
  return post('/index.php?act=member_distribution&op=get_fbalanceDetailList', {type, s_time, e_time, page, pageSize, keyword, style})
}
// 积分转出列表
function getIntegralOutList({page, pageSize, is_remittance, style, type}) {
  return post('/index.php?act=member_distribution&op=freezebToBalanceList', {page, pageSize, is_remittance, style, type})
}
// 经验值历史记录
function getBalanceHistory({status, type, s_time, e_time, page, pageSize}) {
  return post('/index.php?act=member_distribution&op=get_balanceDetailList', {status, type, s_time, e_time, page, pageSize})
}
// 我的朋友列表
function getFriendList({s_time, e_time, type, pageSize, page, keyword}) {
  return post('/index.php?act=member_distribution&op=member_friendsList', {s_time, e_time, type, pageSize, page, keyword})
}

// 设置朋友为刷手
function setBrush(member_id) {
  return post('/index.php?act=member_distribution&op=setBurshman', {member_id: member_id})
}
// 我的朋友的订单列表
function getFriendOrderList({member_id, type, s_time, e_time, pageSize, page}) {
  return post('/index.php?act=member_distribution&op=order_list', {member_id, type, s_time, e_time, pageSize, page})
}
// 积分/经验值转银行卡申请
function withdraw(type, mb_id, withdrawals_amount) {
  return post('/index.php?act=member_distribution&op=member_withdrawals', {type: type, mb_id: mb_id, withdrawals_amount: withdrawals_amount})
}
// 提现记录
function getWithdrawHistory({is_remittance, page, pageSize}) {
  return post('/index.php?act=member_distribution&op=withdrawalsList', {is_remittance, page, pageSize})
}

// 分享链接绑定朋友（上下级）
function bindFriend(fkmid) {
  return post('/index.php?act=member_distribution&op=relationFriends', {fkmid: fkmid})
}

// 获取朋友的共享统计
function getFriendCount() {
  return post('/index.php?act=member_distribution&op=get_friendsNum', {})
}

// 积分转经验值
function integral2balance(amount, type) { // 1零钱（默认） 2 积分 3股权
  return post('/index.php?act=member_distribution&op=freezebToBalance', {withdrawals_amount: amount, type: type})
}
// 股权积分
function getStockRight() {
  return post('/index.php?act=member_distribution&op=stockRight', {})
}
// 冻结积分和经验值统计数据
function getAccountInfo() {
  return post('/index.php?act=member_distribution&op=withdrawalsCount', {})
}
// 充值到经验值 type: wxpay 微信支付
function balanceCharge(type, amount) {
  return post('/index.php?act=member_payment&op=rechargePay', {payment_code: type, recharge_amount: amount})
}
// 取消积分的转出申请（经验值/银行卡）
function cancelIntegralOut(applyId) {
  return post('/index.php?act=member_distribution&op=cancelFreezebTo', {w_id: applyId})
}
// 积分其他收支明细（管理员充值/修改）
function getIntegralOtherList(page, pageSize, type) {
  return post('/index.php?act=member_distribution&op=get_freezeOther', {page, pageSize, type})
}
function payPwdConfirm(password) {
  return post('/index.php?act=member&op=payByPassword', {password: password})
}
// 修改密码
function updatePwd(mobile, password, secode, member_id) {
  return post('/index.php?act=login&op=updatePassword', {mobile: mobile, password: password, secode: secode, member_id: member_id})
}
// 二维码扫码支付（请求二维码）
function getPayQrcode({payment_code, pay_sn}) {
  return post('/api/payment/pinganpay/web.php', {payment_code, pay_sn})
}
// 获取订单状态
function getOrderStatus(pay_sn) {
  return post('/index.php?act=openshop&op=checkOrderState', {pay_sn: pay_sn})
}

// 获取绑定花链钱包的验证码
function getBindWalletMsg(mobile) {
  return post('/index.php?act=wallet&op=send_bind_code', {mobile: mobile})
}
// 绑定花链钱包
function bindWallet(mobile, secode) {
  return post('/index.php?act=wallet&op=bind_mobile', {mobile: mobile, secode: secode})
}

// 获取花链帐号信息
function getWalletInfo() {
  return post('/index.php?act=wallet&op=get_wallet_info', {})
}

// 花链余额转换为积分
function wallet2Integral(amount) {
  return post('/index.php?act=wallet&op=out_trade_balance', {amount: amount})
}

// 每月的统计信息(账户变动查询), version: 批次号
function getReport(version) {
  return post('/index.php?act=member&op=member_buy_info', {version: version})
}
// 获取统计信息批次
function getReportBatchList() {
  return post('/index.php?act=member&op=get_member_sale_months', {})
}
// 花链币明细
function getFlowerCoinBill({type, s_time, e_time, page, pageSize, keyword}) {
  return post('/index.php?act=member_distribution&op=get_fbalanceDetailList', {type, s_time, e_time, page, pageSize, keyword})
}
// 实名认证
function identify({member_truename, idcard_type, cardno, idcard_front_image, idcard_back_image, idcard_hand_image, bank_image, bank_deposit, bank_accoount, bank_member_name}) {
  return post('/index.php?act=member&op=verify_idcard', {member_truename, idcard_type, cardno, idcard_front_image, idcard_back_image, idcard_hand_image, bank_image, bank_deposit, bank_accoount, bank_member_name})
}

// 获取激活的下级总数
function getSubFriendNum(member_id) {
  return post('/index.php?act=member&op=getmember_activenum', {member_id: member_id})
}

function transterMoney(p_id, balance, type, secode) {
  return post('/index.php?act=member_distribution&op=transToOther', {p_id: p_id, balance: balance, type: type, secode: secode})
}

function upDateName(member_name) {
  return post('/index.php?act=member&op=upDateName', {member_name: member_name})
}

function addOrderAddress({address, area_id, area_info, city_id, mob_phone, prov_id, tel_phone, true_name, is_default, order_id, pl}) {
  return post('/index.php?act=member_order&op=addOrderAddress', {
    address,
    area_id,
    area_info,
    city_id,
    mob_phone,
    prov_id,
    tel_phone,
    true_name,
    is_default,
    order_id,
    pl
  })
}

function GetLowerLevelOrderAmount(member_name) {
  return post('/index.php?act=member&op=GetLowerLevelOrderAmount')
}

function addTransaction({balance_num, balance_price, mobile, pay_style, style, pay_info}) {
  return post('/index.php?act=transaction&op=addTransaction', {balance_num, balance_price, mobile, pay_style, style, pay_info})
}

function transactionArea(page, pagesize) {
  return post('/index.php?act=transaction&op=transactionArea', {page: page, pagesize: pagesize})
}

function transactionInfo(id) {
  return post('/index.php?act=transaction&op=transactionInfo', {id: id})
}

function getTransactionList(page, pagesize) {
  return post('/index.php?act=transaction&op=getTransactionList', {page: page, pagesize: pagesize})
}

function bookingTransaction(id) {
  return post('/index.php?act=transaction&op=bookingTransaction', {id: id})
}

function finishedTransaction(id) {
  return post('/index.php?act=transaction&op=finishedTransaction', {id: id})
}

function GetLowerLevelOrderAmountByTime(start_time, end_time) {
  return post('/index.php?act=member&op=GetLowerLevelOrderAmountByTime', {start_time: start_time, end_time: end_time})
}

function GetArticleType(page, pagesize) {
  return post('/index.php?act=article&op=admin_article_type', {page: page, pagesize: pagesize})
}

function breakWindow() {
  return post('/index.php?act=update_window&op=breakWindow', {})
}

function memberEarningsTotal(page, pagesize) {
  return post('index.php?act=member&op=memberEarningsTotal', {page: page, pagesize: pagesize})
}

function memberEditBank(mobile, secode, bank_member_name, bank_name, bank_deposit, bank_id) {
  return post('index.php?act=member&op=memberEditBank', {mobile: mobile, secode: secode, bank_member_name: bank_member_name, bank_name: bank_name, bank_deposit: bank_deposit, bank_id: bank_id})
}

function goods_jp_class(gc_id) {
  return post('index.php?act=goods&op=goods_jp_class', {gc_id: gc_id})
}

function goods_jp_gc_class(gc_id, page, pagesize) {
  return post('index.php?act=goods&op=goods_jp_gc_class', {gc_id: gc_id, page: page, pagesize: pagesize})
}

function updateAddressOther(order_id, address, detail) {
  return post('index.php?act=openshop&op=updateAddress', {order_id: order_id, address: address, detail: detail})
}

export {
  getAppVersionInfo,
  uploadImg,
  getMemberInfoByKey,
  getMemberInfoById,
  getKey,
  checkIDCard,
  getWxConfig,
  getKeyByUnionId,
  loginByMessage,
  loginByPwd,
  loginByWeixin,
  getWxPayOrder,
  auth,
  getAuth,
  getMessageCode,
  getMessageCode2,
  payTest,
  getAdvList,
  getGoodsClassList,
  getNoticeList,
  getNoticeDetail,
  getMemberNoticeList,
  getMemberNoticeDetail,
  getPanicBuyingList,
  getPanicBuyingGoodsList,
  getBalconyList,
  getNewGoodsList,
  getHotGoodsList,
  getGoodsByClassify,
  getGoodsCommonInfo,
  getGoodsCommentList,
  getGoodsAttributeList,
  addGoodsToCart,
  modifyGoodsNumToBuy,
  delGoodsFromCart,
  getGoodsListInCart,
  delAddress,
  getAddressInfo,
  getAddressList,
  addAddress,
  updateAddress,
  setDefaultAddress,
  getBuyInfo,
  submitOrder,
  getOrderList,
  getOrderInfo,
  getIntegralList,
  getBalanceList,
  cancleOrder,
  addCommentList,
  getArea,
  getVideo,
  getVideoDetail,
  homeVideo,
  getMemberInfo,
  getMemberName,
  getMessageList,
  getRefundMoneyList,
  getRefundMoneyInfo,
  getRefundGoodsList,
  getRefundGoodsListByOrder,
  addRefund,
  getRefundInfo,
  getRefundReasonList,
  getExpressList,
  addRefundExpress,
  getRefundExpress,
  confirmReceived,
  getOrderExpress,
  getNewsList,
  getNewsDetail,
  getCollectList,
  addCollect,
  delCollect,
  getErpStorage,
  editUserName,
  editUserTrueName,
  getInviterInfo,
  getShopAddressList,
  addAgentOrder,
  getSubMemberList,
  getSubOrderList,
  getCountList,
  addArriveNotice,
  addGoodsView,
  editBankcard,
  getBankcardList,
  getBankcardInfo,
  getBankList,
  delBankcard,
  setDefaultBankcard,
  payByBalance,
  getIntegralHistory,
  getIntegralOutList,
  getBalanceHistory,
  getFriendList,
  setBrush,
  getFriendOrderList,
  withdraw,
  getWithdrawHistory,
  bindFriend,
  getFriendCount,
  integral2balance,
  getStockRight,
  getAccountInfo,
  balanceCharge,
  cancelIntegralOut,
  getIntegralOtherList,
  payPwdConfirm,
  updatePwd,
  getPayQrcode,
  getOrderStatus,
  getBindWalletMsg,
  bindWallet,
  getWalletInfo,
  wallet2Integral,
  getReport,
  getReportBatchList,
  getFlowerCoinBill,
  identify,
  getSubFriendNum,
  transterMoney,
  upDateName,
  addOrderAddress,
  GetLowerLevelOrderAmount,
  addTransaction,
  transactionArea,
  transactionInfo,
  getTransactionList,
  bookingTransaction,
  finishedTransaction,
  GetLowerLevelOrderAmountByTime,
  GetArticleType,
  breakWindow,
  memberEarningsTotal,
  memberEditBank,
  goods_jp_class,
  goods_jp_gc_class,
  updateAddressOther
}
